package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.AlertData;
import com.zzyl.vo.AlertDataVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AlertDataMapper {

    void batchInsert(List<AlertData> alertDataList);

    Page<AlertDataVo> page(@Param("deviceName")String deviceName, @Param("endTime")Integer endTime, @Param("id")Integer id, @Param("startTime")Integer startTime, @Param("status")Integer status);

    void updateStatus(@Param("id")Long id);
}
